package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysMemberMapper;
import com.ruoyi.system.domain.SysMember;
import com.ruoyi.system.service.ISysMemberService;

/**
 * 会员Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-21
 */
@Service
public class SysMemberServiceImpl implements ISysMemberService 
{
    @Autowired
    private SysMemberMapper sysMemberMapper;

    /**
     * 查询会员
     * 
     * @param memberId 会员主键
     * @return 会员
     */
    @Override
    public SysMember selectSysMemberByMemberId(Long memberId)
    {
        return sysMemberMapper.selectSysMemberByMemberId(memberId);
    }

    /**
     * 查询会员列表
     * 
     * @param sysMember 会员
     * @return 会员
     */
    @Override
    public List<SysMember> selectSysMemberList(SysMember sysMember)
    {
        return sysMemberMapper.selectSysMemberList(sysMember);
    }

    /**
     * 新增会员
     * 
     * @param sysMember 会员
     * @return 结果
     */
    @Override
    public int insertSysMember(SysMember sysMember)
    {
        return sysMemberMapper.insertSysMember(sysMember);
    }

    /**
     * 修改会员
     * 
     * @param sysMember 会员
     * @return 结果
     */
    @Override
    public int updateSysMember(SysMember sysMember)
    {
        return sysMemberMapper.updateSysMember(sysMember);
    }

    /**
     * 批量删除会员
     * 
     * @param memberIds 需要删除的会员主键
     * @return 结果
     */
    @Override
    public int deleteSysMemberByMemberIds(Long[] memberIds)
    {
        return sysMemberMapper.deleteSysMemberByMemberIds(memberIds);
    }

    /**
     * 删除会员信息
     * 
     * @param memberId 会员主键
     * @return 结果
     */
    @Override
    public int deleteSysMemberByMemberId(Long memberId)
    {
        return sysMemberMapper.deleteSysMemberByMemberId(memberId);
    }
}
